package com.ruoyi.member.service.impl;


import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.db.domain.MemberLoginSession;
import com.ruoyi.db.mapper.MemberLoginSessionMapper;
import com.ruoyi.member.service.IMemberLoginSessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(DataSourceType.SLAVE)
public class MemberLoginSessionServiceImpl implements IMemberLoginSessionService {

    @Autowired
    MemberLoginSessionMapper memberLoginSessionMapper;

    @Override
    public List<MemberLoginSession> getTokenByUid(Long uid) {
        return memberLoginSessionMapper.getTokenByUid(uid);
    }
}
